#include "iostream_test.h"
#include <fstream>
using namespace elloop_test;
using namespace std;

IostreamTest* elloop_test::IostreamTest::run()
{
	testReadingFile();
	return this;
}

void elloop_test::IostreamTest::testReadingFile()
{
	ifstream ifs;
	ifs.open("d:\\fightend", ios::in);
	int n(0);
	if (!ifs.is_open()) {
		pln("fail to open file");
	}
	ifs >> n;
	psln(n);
	ifs.close();
}


